<div id="pad-wrapper" class="new-user">
	<div class="row-fluid header">
		<h3>编辑</h3>
	</div>
	<div class="row-fluid form-wrapper">
		<!-- left column -->
		<div class="span9 with-sidebar">
			<div class="container">
				<form class="new_user_form form-horizontal" action="/organization/save" method="post" id="dataForm" enctype="multipart/form-data">
				<input type="hidden" name="id" value="<?php echo $row['spread_id']?>" />
				<div class="field-box"></div>
				<div class="control-group form-group span12">
				  <label class="control-label" for="organization_name">姓名：</label>
				  <div class="controls col-lg-5">
					<input type="text" id="name" name="name"  readonly="readonly"  autocomplete="off"   placeholder="姓名" data-bv-notempty="" data-bv-notempty-message="姓名不能为空" value="<?php echo $row['name']?>" />
					</div>
				</div>
				<div class="control-group form-group span12">
				  <label class="control-label" for="description">手机号：</label>
				  <div class="controls col-lg-5">
					<input type="text" id="mobile" name="mobile" placeholder="手机号"  value="<?php echo $row['mobile']?>"> </input>
				  </div>
				</div>
				<div class="control-group form-group span12">
					<label class="control-label" for="description">微信昵称：</label>
					<div class="controls col-lg-5">
						<input type="text" id="wx_name"  readonly="readonly"  name="wx_name" placeholder="微信昵称"  value="<?php echo $row['wx_name']?>"></input>
					</div>
				</div>
				<div class="control-group form-group span12">
				  <label class="control-label" for="proprieter_name">邮箱：</label>
				  <div class="controls col-lg-5">
					<input type="text" id="email" name="email" placeholder="邮箱" value="<?php echo $row['email']?>"/>
				  </div>
				</div>
				<div class="control-group form-group span12">
				  <label class="control-label" for="proprieter_desc">申请时间：</label>
				  <div class="controls col-lg-5">
					<input type="text" id="create_time"  readonly="readonly"  name="create_time" placeholder="申请时间"  value="<?php echo date('Y-m-d G:i:s',$row['create_time'])?>"></input>
				  </div>
				</div>
				<div class="control-group form-group span12">
				  <label class="control-label" for="public">备注：</label>
				  <div class="controls col-lg-5">
					<textarea type="text" class="span6"  readonly="readonly"  rows="5" id="sh_describe" name="sh_describe" placeholder="备注"><?php echo $row['sh_describe']?></textarea>
				  </div>
				</div>

				<div class="span12 field-box"></div>
				<div class="control-group form-group span12 actions">
				  <label class="control-label"></label>
				  <div class="controls col-lg-5">
					  <button type="button" id="btn-edit" class=" btn-flat primary">修改</button></li>
				  </div>
				</div>
				</form>
			</div>
		</div>
		<!-- side right column -->
		<div class="span3 form-sidebar pull-right">
		</div>
	</div>
	<script type="text/javascript">
	$(document).ready(function() {
		$("#btn-edit").click(function(e){
			e.preventDefault();
			var desc=$("#sh_describe").val();
			var mobile=$("#mobile").val();
			var email=$("#email").val();
			window.location.href="/spread/save?id=<?php echo $row['spread_id']?>&mobile="+mobile+"&email="+email+"&sh_describe="+desc;
		});

		$('#dataForm').bootstrapValidator({
			message: 'This value is not valid',
			feedbackIcons: {
				valid: 'glyphicon glyphicon-ok',
				invalid: 'glyphicon glyphicon-remove',
				validating: 'glyphicon glyphicon-refresh'
			},
			fields: {
				organization_name: {
					message: '社团名称不符合规则',
					validators: {
						notEmpty: {
							message: '社团名称是必填项，不能为空'
						}
					}
				},
				description: {
					message: '社团描述不符合规则',
					validators: {
						notEmpty: {
							message: '社团描述是必填项，不能为空'
						}
					}
				},
				proprieter_name: {
					message: '社长姓名不符合规则',
					validators: {
						notEmpty: {
							message: '社长姓名是必填项，不能为空'
						}
					}
				},
				proprieter_desc: {
					message: '社长介绍不符合规则',
					validators: {
						notEmpty: {
							message: '社长介绍是必填项，不能为空'
						}
					}
				},
				public: {
					message: '社团公告不符合规则',
					validators: {
						notEmpty: {
							message: '社团公告是必填项，不能为空'
						}
					}
				},
				t_sort: {
					message: '排序不符合规则',
					validators: {
						notEmpty: {
							message: '排序是必填项，不能为空'
						}
					}
				}
			}
		});
	});
	</script>
</div>